import request from '@/sheep/request';

export default {
  // 获得文章详情
  getArticle: (id, title) => {
    return request({
      url: '/promotion/article/get-by-xcx',
      method: 'GET',
      params: {
        id,
        title
      }
    });
  },
  // 获取banner
  getBanner: (params) => {
    return request({
      url: '/promotion/banner/list',
      method: 'GET',
      params
    });
  },
  // 获得文章详情分页
  getArticleList: (params) => {
    return request({
      url: '/promotion/article/page',
      method: 'GET',
      params
    });
  },
  // 获取文章分类详情
  getArticleCategory: (params) => {
    return request({
      url: '/promotion/article-category/get',
      method: 'GET',
      params
    });
  },
  // 获得文章分类列表
  getArticleCategoryList: (params) => {
    return request({
      url: '/promotion/article-category/list',
      method: 'GET',
      params
    });
  },

}